<?php slot('title') ?>
    <?php echo $portal->getTitle().' - '.$section->getTitle().' - '.$content->getTitle() ?>
<?php end_slot() ?>

<?php if($content->getThumbBig()): ?>
    <?php slot('thumbnail')?>
        <link rel="image_src" type="image/jpeg"
              href="<?php echo url_for('@render_basehost',true).'uploads/portal_'.$portal->getId().'/images/'.$content->getThumbBig()?>" />
    <?php end_slot() ?>
<?php elseif($content->getThumbSmall()): ?>
    <?php slot('thumbnail')?>
        <link rel="image_src" type="image/jpeg"
              href="<?php echo url_for('@render_basehost',true).'uploads/portal_'.$portal->getId().'/images/'.$content->getThumbSmall()?>"/>
    <?php end_slot() ?>
<?php elseif($portal->getImage()): ?>
    <?php slot('thumbnail')?>
        <link rel="image_src" type="image/jpeg"
              href="<?php echo url_for('@render_basehost',true).'uploads/portal_'.$portal->getId().'/images/'.$portal->getImage()?>" />
    <?php end_slot() ?>
<?php endif; ?>

<?php if($section->getUsesHeader()):?>
    <div id="header">
        <?php for($i = 1; $i <= count($headerObjects); $i++):?>
            <?php if(isset ($headerObjects[$i])) : ?>
                <div id="<?php echo 'header'.$headerObjects[$i]->getType()->getType()?>">
                    <?php include_partial('render'.$headerObjects[$i]->getType()->getType(),
                            array(
                                strtolower($headerObjects[$i]->getType()->getType()) => $headerObjects[$i],
                                'portal' => $portal,
                                'hasBigScreen' => $hasBigScreen
                            )) ?>
                </div>
            <?php endif; ?>
        <?php endfor;?>
    </div>
<?php endif;?>
<div id="mainContent">
    <div class="content">
        <?php if($content->getType()->getType() == 'Image'): ?>
            <?php include_partial('renderImage',
                array(
                    'content' => $content,
                    'section' => $section,
                    'portal' => $portal,
                    'best' => $best,
                    'hasBigScreen' => $hasBigScreen
                ))?>
        <?php else: ?>
            <?php include_partial('render'.$content->getType()->getType(),
                array(
                    'content' => $content,
                    'section' => $section,
                    'portal' => $portal,
                    'hasBigScreen' => $hasBigScreen
                ))?>
        <?php endif; ?>
        <?php if($content->getSummary() != ''): ?>
        <?php endif; ?>
        <?php if($portal->getUsesServButtons()): ?>
            <?php include_partial('renderServiceButtons',
                    array(
                        'portal'=>$portal,
                        'content' => $content,
                        'hasBigScreen' => $hasBigScreen
                    ))?>
        <?php endif; ?>
    </div>
    <?php if($portal->getUsesContentComments()): ?>
        <?php if($pager->getResults()->count()):?>
            <?php include_partial('comments', array('pager' => $pager)) ?>
        <?php endif; ?>
        <div class="comment-form">
            <?php if(isset($valid) && $valid):?>
                <div>
                    <p><b>Hemos recibido su comentario.</b></p>
                </div>
            <?php endif; ?>
            <form action="<?php echo url_for('render_process_comment',$content)?>" method="post" >
                <?php echo $form->render() ?>
                <div>
                    <input type="submit" value="Enviar" />
                </div>
            </form>
        </div>
    <?php endif; ?>
</div>
<?php if($section->getUsesFooter()):?>
    <div id="footer">
        <?php if(true): ?>
            <?php include_partial('breadcrumbs', array('portal' => $portal, 'section' => $section, 'content' => $content))?>
        <?php endif; ?>
        <?php for($i = 1; $i <= count($footerObjects); $i++):?>
            <div id="<?php echo 'footer'.$footerObjects[$i]->getType()->getType()?>">
                <?php include_partial('render'.$footerObjects[$i]->getType()->getType(),
                        array(
                            strtolower($footerObjects[$i]->getType()->getType()) => $footerObjects[$i],
                            'portal' => $portal,
                            'hasBigScreen' => $hasBigScreen
                        ))?>
            </div>
        <?php endfor;?>
        <p>
            <?php echo html_entity_decode($portal->getFooter()->getHtml())?>
        </p>
        <p class="copyrights">
            <a href="<?php echo url_for('render_homesection',$portal)?>">
                <?php echo $portal?>
            </a> es desarrollado por
            <a href="http://www.equilibrio.net.ve">
                Equilibrio Agencia Digital
            </a>
        </p>
    </div>
<?php endif;?>

